package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import lombok.Data;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(name = "cn_omc_period_leave_return_fee")
public class OmcPeriodLeaveReturnFee extends BaseEntity {
    /**
     * 版本号
     */
    private Integer version;

    /**
     * 组织Id
     */
    @Column(name = "group_id")
    private Long groupId;

    /**
     * 老人请假Id
     */
    @Column(name = "leave_id")
    private Long leaveId;

    /**
     * 老人id
     */
    @Column(name = "old_man_id")
    private Long oldManId;

    /**
     * 消费类别id
     */
    @Column(name = "expense_type_id")
    private Long expenseTypeId;

    /**
     * 收费项目id
     */
    @Column(name = "expense_item_id")
    private Long expenseItemId;

    /**
     * 缴费类型名
     */
    @Column(name = "item_type")
    private String itemType;

    /**
     * 缴费项目名
     */
    @Column(name = "item_name")
    private String itemName;

    /**
     * 项目费用
     */
    @Column(name = "item_fee")
    private BigDecimal itemFee;

    /**
     * 人员类别减免费用
     */
    @Column(name = "user_type_rate_refief")
    private BigDecimal userTypeRateRefief;

    /**
     * 人工减免费用
     */
    @Column(name = "user_rate_refief")
    private BigDecimal userRateRefief;

    /**
     * 实际费用
     */
    @Column(name = "actual_fee")
    private BigDecimal actualFee;

    /**
     * 请假日期
     */
    @Column(name = "leave_date")
    private String leaveDate;

    /**
     * 实际回院日期
     */
    @Column(name = "real_date")
    private String realDate;

    /**
     * 实际退费天数
     */
    @Column(name = "refund_days")
    private Integer refundDays;

    /**
     * 请假退费天数（大于等于该天数才进行退费）
     */
    @Column(name = "return_fee_days")
    private Integer returnFeeDays;

    /**
     * 扣除请假天数（当满足退费天数时，要扣除该天数的金额）
     */
    @Column(name = "take_off_days")
    private Integer takeOffDays;

    /**
     * 周期总天数
     */
    @Column(name = "cycle_total_days")
    private Integer cycleTotalDays;

    /**
     * 请假退费周期数
     */
    @Column(name = "return_degree")
    private BigDecimal returnDegree;

    /**
     * 请假退费费用
     */
    @Column(name = "return_fee")
    private BigDecimal returnFee;

    /**
     * 套餐项目退费标准
     */
    @Column(name = "return_standard")
    private BigDecimal returnStandard;

    /**
     * 是否套餐退费 0.不是 1.是
     */
    @Column(name = "is_meal")
    private Integer isMeal;

    /**
     * 描述
     */
    private String remark;


}